% igetaNs.
% given a (ka x 1), translates a to aNs (Ns x 1)
OneNs=ones(Ns,1);
aNs=zeros(Ns,1);
for q=1:ka,
qind = find(t==BeginYear-1+q);
aNs(qind) = a(q)*ones(size(qind));

end;
  
